package com.ekko.weatherapp.tools;

/**
 * Created by Ekko on 2017-12-15.
 */

import java.io.PrintStream;

/**
 * 常量类，用于存放各种常量
 */
public class Constants {
    public static final String[] cityList = {"上海", "北京", "杭州", "广州", "南京", "苏州", "深圳", "成都", "重庆", "天津", "宁波", "扬州", "无锡", "福州",
            "厦门", "武汉", "西安", "沈阳", "大连", "青岛", "济南", "海口", "石家庄", "唐山", "秦皇岛", "邯郸", "邢台", "保定", "张家口"};

    public static final String host = "https://free-api.heweather.com/s6/weather/forecast";

    // appcode
    public static final String appcode = "4a729e387db64e99bf60159a34127996";

    public static class statusType {
        public static final String OK = "ok";
        public static final String FAILED = "unknown city";
    }

    public static class weatherType {
        // 白天天气状况描述
        public static final String dayCons = "cond_txt_d";
        // 晚间天气状况描述
        public static final String nightCons = "cond_txt_n";
        // 最高温度
        public static final String maxTmp = "tmp_max";
        // 最低温度
        public static final String minTmp = "tmp_min";
        // 预报时间
        public static final String date = "date";
        // 城市
        public static final String location = "location";
    }
}